home *** CD-ROM | disk | FTP | other *** search
- Path: airdmhor.gen.nz!not-for-mail
- From: gumboot@airdmhor.gen.nz (Simon Hosie)
- Newsgroups: comp.lang.c
- Subject: Re: compilers
- Date: 18 Mar 1996 03:55:25 +1200
- Organization: Airdmhor : a couple of BBS's, a bunch of people, and a cat.
- Message-ID: <4ihcld$iln@airdmhor.gen.nz>
- References: <4iburm$aps@airdmhor.gen.nz> <DoBvF6.GG5@iquest.net>
- NNTP-Posting-Host: airdmhor.gen.nz
- X-Newsreader: TIN [version 1.2 PL2]
-
- gumboot@airdmhor.gen.nz (Simon Hosie) wrote:
- > Does anyone know of a compiler that can take
- >
- > for (;;)
- > {
- > Stuff(1);
- > if (Cond)
- > break;
- > Stuff(2);
- > }
- >
- > and make
- >
- > goto EntryPoint;
- > do
- > {
- > Stuff(2);
- > EntryPoint:
- > Stuff(1);
- > } while (Cond);
-
- Doug Miller:
- > A possibly more important question is why you would want it to, since the first form is vastly
- > more comprehensible.
-
- Well, it would compile it, so you'd never get to see the difference, but
- the latter has only 1 conditional jump and no 'definite'jumps in the inner
- loop whereas the former has 1 conditial jump (not usually taken) and a
- 'definite' jump.
-